package com.hjf.ditubiaozhu.main;

import android.app.Application;
import android.content.Context;

import com.baidu.mapapi.SDKInitializer;

public class App extends Application {

	private static App mApp = null;
	
	
	@Override
	public void onCreate() {
		super.onCreate();
		mApp = this ;
		//FreelineCore.init(this);
		//初始化各种sdk
		initSDK();
		//处理异常
		//AppCrashHandler handler = AppCrashHandler.getInstance();
	  	//handler.getInstance().init(this);
		
		//初始化log
		//Log_FloatWindow.init(this);

	}


	/**
	 *初始化所有扩展需要依赖的，如地图SDK等等
	 */
	private void initSDK() {
		SDKInitializer.initialize(this);

	}


	public static Context getInstance() {
		return mApp;
	}
}
